home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 95 / CD-ROM 95.iso / essenc / ie5sp2 / IEMIL_3.CAB / SHDOCLC.DLL / HTML / IEERROR.DLG < prev    next >
Encoding:
Text File  |  2001-08-02  |  9.4 KB  |  369 lines

  1. <HTML id=dlgError STYLE="font-family:MS Sans Serif; font-size:8pt; width:43.0025em; height:13.7em;">
  2. <HEAD>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  4. <TITLE id=dialogTitle>
  5. Internet Explorer
  6. </TITLE>
  7. <style type="text/css">
  8. p,td,input,button { font:8pt MS Shell Dlg; cursor:default}
  9. body { font:8pt MS Shell Dlg; color: windowtext;
  10.  background:menu;}
  11. </style>
  12. <SCRIPT LANGUAGE="JavaScript" defer>
  13. window.onerror = HandleError
  14. document.ondragstart = NoDragging
  15. function NoDragging()
  16. {
  17. window.event.returnValue = false;
  18. }
  19. var g_errList;
  20. var g_detailsPaneOpen;
  21. function HandleError(message, url, line)
  22. {
  23. var L_Dialog_ErrorMessage = "Ocorreu um erro nesta caixa de dißlogo.";
  24. var L_ErrorNumber_Text = "Erro: ";
  25. var str = L_Dialog_ErrorMessage + "\n\n"
  26.  + L_ErrorNumber_Text + line + "\n"
  27.  + message;
  28. alert (str);
  29. window.close();
  30. return true;
  31. }
  32. function updateTabIndices()
  33. {
  34. if (g_detailsPaneOpen)
  35. {
  36.  var nextIndex = 3;
  37.  if (!btnPrevErr.disabled)
  38.  {
  39.   btnPrevErr.tabindex = nextIndex++;
  40.  }
  41.  if (!btnNextErr.disabled)
  42.  {
  43.   btnNextErr.tabindex = nextIndex++;
  44.  }
  45.  chkAlwaysShowErrs.tabindex = nextIndex;
  46. }
  47. else
  48. {
  49.  btnPrevErr.tabindex = -1;
  50.  btnNextErr.tabindex = -1;
  51.  chkAlwaysShowErrs.tabindex = 3;
  52. }
  53. }
  54. function loadBdy()
  55. {
  56. g_errList = window.dialogArguments;
  57. chkAlwaysShowErrs.checked = g_errList.getPerErrorDisplay();
  58. g_errList.setPerErrorDisplay(chkAlwaysShowErrs.checked);
  59. chkAlwaysShowErrs.disabled = g_errList.getAlwaysShowLockState();
  60. g_detailsPaneOpen = g_errList.getDetailsPaneOpen();
  61. assureControlState();
  62. btnOK.onclick = new Function("btnOKClick()");
  63. btnOK.onkeydown = new Function("SwitchFocus()");
  64. btnDetails.onclick = new Function("btnDetailsClick()");
  65. btnDetails.onkeydown = new Function("SwitchFocus()");
  66. btnNextErr.onclick = new Function("btnNextErrClick()");
  67. btnNextErr.onkeydown = new Function("SwitchFocus()");
  68. btnPrevErr.onclick = new Function("btnPrevErrClick()");
  69. btnPrevErr.onkeydown = new Function("SwitchFocus()");
  70. updateErrorInfo();
  71. if (!g_errList.canRetreatError())
  72. {
  73.  btnPrevErr.disabled = true;
  74. }
  75. if (!g_errList.canAdvanceError())
  76. {
  77.  btnNextErr.disabled = true;
  78. }
  79. btnOK.focus();
  80. function updateErrorInfo()
  81. {
  82. spnLine.innerText  = g_errList.getErrorLine();
  83. spnCharacter.innerText = g_errList.getErrorChar();
  84. spnCode.innerText  = g_errList.getErrorCode();
  85. divError.innerText  = g_errList.getErrorMsg();
  86. divURL.innerText  = g_errList.getErrorUrl();
  87. }
  88. function SwitchFocus()
  89. {
  90. var HTML_KEY_ARROWLEFT = 37;
  91. var HTML_KEY_ARROWUP = 38;
  92. var HTML_KEY_ARROWRIGHT = 39;
  93. var HTML_KEY_ARROWDOWN = 40;
  94. var iCode = event.keyCode;
  95. var strSourceID = event.srcElement.id;
  96. var fTabForward;
  97. if (iCode < HTML_KEY_ARROWLEFT || iCode > HTML_KEY_ARROWDOWN)
  98. {
  99.  return;
  100. }
  101. var fTabForward = iCode == HTML_KEY_ARROWRIGHT ||
  102.      iCode == HTML_KEY_ARROWDOWN;
  103. if (g_detailsPaneOpen)
  104. {
  105.  if (fTabForward)
  106.  {
  107.   if (strSourceID == "btnPrevErr")
  108.   {
  109.    if (!btnNextErr.disabled)
  110.    {
  111.     btnNextErr.focus();
  112.    }
  113.   }
  114.   else if (strSourceID == "btnOK")
  115.   {
  116.    btnDetails.focus();
  117.   }
  118.   else if (strSourceID == "chkAlwaysShowErrs")
  119.   {
  120.    btnOK.focus();
  121.   }
  122.  }
  123.  else
  124.  {
  125.   if (strSourceID == "btnNextErr")
  126.   {
  127.    if (!btnPrevErr.disabled)
  128.    {
  129.     btnPrevErr.focus();
  130.    }
  131.   }
  132.   else if (strSourceID == "btnDetails")
  133.   {
  134.    btnOK.focus();
  135.   }
  136.   else if (strSourceID == "btnOK")
  137.   {
  138.    chkAlwaysShowErrs.focus();
  139.   }
  140.  }
  141. }
  142. }
  143. function btnOKClick()
  144. {
  145. g_errList.setPerErrorDisplay(chkAlwaysShowErrs.checked);
  146. g_errList.setDetailsPaneOpen(g_detailsPaneOpen);
  147. window.close();
  148. }
  149. function assureControlState()
  150. {
  151. var L_DetailsExpand_Text = "Mostrar <u>d</u>etalhes >>";
  152. var L_DetailsCollapse_Text = "Ocultar <u>d</u>etalhes <<";
  153. if (g_detailsPaneOpen)
  154. {
  155.  btnDetails.innerHTML = L_DetailsCollapse_Text;
  156.  window.dialogHeight = 27.2;
  157.  divDetails.style.display = "";
  158.  divButtons2.style.display = "";
  159.  trHR.style.display = "";
  160. }
  161. else
  162. {
  163.  btnDetails.innerHTML = L_DetailsExpand_Text;
  164.  divDetails.style.display = "none";
  165.  divButtons2.style.display = "none";
  166.  trHR.style.display = "none";
  167.  window.dialogHeight = 13.7;
  168. }
  169. }
  170. function btnDetailsClick()
  171. {
  172. g_detailsPaneOpen = !g_detailsPaneOpen;
  173. assureControlState();
  174. if (g_detailsPaneOpen)
  175. {
  176.  if (!btnNextErr.disabled)
  177.  {
  178.   btnNextErr.focus();
  179.  }
  180.  else if (!btnPrevErr.disabled)
  181.  {
  182.   btnPrevErr.focus();
  183.  }
  184.  else
  185.  {
  186.   btnOK.focus();
  187.  }
  188. }
  189. else
  190. {
  191.  btnDetails.focus();
  192. }
  193. updateTabIndices();
  194. }
  195. function btnNextErrClick()
  196. {
  197. g_errList.advanceError();
  198. updateErrorInfo();
  199. if (btnPrevErr.disabled)
  200. {
  201.  btnPrevErr.disabled = false;
  202. }
  203. if (!g_errList.canAdvanceError())
  204. {
  205.  btnNextErr.disabled = true;
  206.  btnPrevErr.focus();
  207. }
  208. updateTabIndices();
  209. }
  210. function btnPrevErrClick()
  211. {
  212. g_errList.retreatError();
  213. updateErrorInfo();
  214. if (btnNextErr.disabled)
  215. {
  216.  btnNextErr.disabled = false;
  217. }
  218. if (!g_errList.canRetreatError())
  219. {
  220.  btnPrevErr.disabled = true;
  221.  btnNextErr.focus();
  222. }
  223. updateTabIndices();
  224. }
  225. function BodyOnKeyPress(nCode)
  226. {
  227. if (nCode == 27) 
  228. {
  229.  window.close();
  230.  return;
  231. }
  232. }
  233. </SCRIPT>
  234. </HEAD>
  235. <BODY ID=bdy style="background: threedface" onLoad=loadBdy() onkeydown=BodyOnKeyPress(event.keyCode) onkeypress=BodyOnKeyPress(event.keyCode) topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>
  236. <table id=tblMain tabindex=-1 cellspacing=0 border=0 style="background:buttonface; border-collapse:collapse; width:27.1em;">
  237. <TR>
  238. <!-- Icon image -->
  239. <TD id=tdIcon valign=top style="padding-left:0.9625em; padding-top:0.9295em; padding-right:0.385em;">
  240. <img id=imgIcon src=warning.gif>
  241. </TD>
  242. <TD style="padding-top:0.5577em;">
  243. <!-- Inner table start -->
  244. <table tabindex=-1 cellspacing=0 border=0 style="background:buttonface; border-collapse:collapse">
  245. <!-- Error message dialog -->
  246. <TR>
  247. <TD id=tdMsg style="padding-left:0.48125em; padding-right:0em">
  248.  Problemas com esta pßgina da Web impedem que ela seja
  249.  exibida corretamente ou funcione corretamente. No
  250.  futuro, vocΩ poderß exibir esta mensagem clicando duas vezes
  251.  no φcone de aviso exibido na barra de status.
  252. </TD>
  253. </TR>
  254. <!-- Checkbox -->
  255. <TR>
  256. <TD style="padding-top:0.46475em;">
  257.  <input id=chkAlwaysShowErrs tabindex=5 accesskey=s type=checkbox>
  258.  <label for=chkAlwaysShowErrs id=labelChk>
  259.  <u>S</u>empre exibir esta mensagem quando uma pßgina contiver erros.
  260.  </label>
  261. </TD>
  262. </TR>
  263. <!-- OK button -->
  264. <TR>
  265. <TD id=Buttons align=right style="padding-top:1.20835em;">
  266.  <table id=tblMain tabindex=-1 cellspacing=0 border=0 style="background:buttonface; border-collapse:collapse;">
  267.  <tr>
  268.  <td style="padding-right:0.385em; padding-left:0em">
  269.   <button id=btnOK tabindex=1
  270.   style="width:10em; height:2.2em;"
  271.   type=submit>
  272.   OK
  273.   </button>
  274.  </td>
  275.  <td>
  276.   <button id=btnDetails tabindex=2
  277.   style="width:10em; height:2.2em;"
  278.   accesskey=d>
  279.   Mostrar <u>d</u>etalhes >>
  280.   </button>
  281.  </td>
  282.  </tr>
  283.  </table>
  284. </TD>
  285. </TR>
  286. </TABLE>
  287. <!-- Inner table end -->
  288. </TD>
  289. </TR>
  290. <!-- HR -->
  291. <TR id=trHR style="display:none;">
  292. <TD colspan=2 style="padding-left:1.155em; padding-top:0.09295em; padding-right:0.28875em;">
  293. <hr>
  294. </TD>
  295. </TR>
  296. </TABLE>
  297. <DIV id=divDetails tabindex=-1 style="border:inset; overflow:auto; position:absolute; background:threedface; font-family:MS Sans Serif; 
  298.          font-size:8pt; top:12.553em; width:39em; height:8.2796em; margin-left:1.155em; margin-right: 0em; display:none">
  299. <TABLE id=tbl2 tabindex=-1 cellspacing=0 border=0 style="border-collapse:collapse; background:buttonface; font-family:MS Sans Serif;
  300.               font-size:8pt;">
  301. <TBODY>
  302. <TR valign=top>
  303. <TD id=tdLine nowrap style="padding-top:0.3718em; padding-left:0.48125em; padding-right:0em">
  304. Linha:
  305. </TD>
  306. <TD id=tdSpanLine style="padding-top:0.46475em;">
  307. <SPAN id=spnLine></SPAN>
  308. </TD>
  309. </TR>
  310. <TR valign=top>
  311. <TD id=tdChar nowrap style="padding-left:0.48125em; padding-right:0em">
  312. Caractere:
  313. </TD>
  314. <TD id=tdSpanCharacter>
  315. <SPAN id=spnCharacter></SPAN>
  316. </TD>
  317. </TR>
  318. <TR valign=top>
  319. <TD id=tdError nowrap style="padding-left:0.48125em; padding-right:0em">
  320. Erro:
  321. </TD>
  322. <TD id=tdSpanError>
  323. <DIV id=divError tabindex=-1 style="background: threedface;
  324. font-family: ms sans serif; font-size:8pt; width:32.1475em;"></DIV>
  325. </TD>
  326. </TR>
  327. <TR valign=top>
  328. <TD id=tdCode nowrap style="padding-left:0.48125em; padding-right:0em">
  329. C≤digo:
  330. </TD>
  331. <TD id=tdSpanCode>
  332. <SPAN id=spnCode></SPAN>
  333. </TD>
  334. </TR>
  335. <TR valign=top>
  336. <TD id=tdURL nowrap style="padding-left:0.48125em; padding-right:0em; padding-bottom:0.09295em;">
  337. URL:
  338. </TD>
  339. <TD id=tdSpanURL>
  340. <DIV id=divURL tabindex=-1 style="background:threedface; font-family:ms sans serif; font-size:8pt; width:32.1475em;"></DIV>
  341. </TEXTAREA>
  342. </TD>
  343. </TR>
  344. </TBODY>
  345. </TABLE>
  346. </DIV>
  347. <DIV id=divButtons2 tabindex=-1 align=right style="background:buttonface; position:absolute; font-family:MS Sans Serif; font-size:8pt; top:21.2926em;
  348.   width:39.09625em; margin-left:1.155em; margin-right:0em; display:none">
  349.  <table id=tblMain tabindex=-1 cellspacing=0 border=0 style="background:buttonface; border-collapse:collapse;">
  350.  <tr>
  351.  <td style="padding-right:0.385em; padding-left:0em">
  352.   <button id=btnPrevErr tabindex=3 type=reset accesskey=a
  353.   style="font-family: MS Sans Serif; font-size:8pt; width:10em; height:2.2em;">
  354.    <u>A</u>nterior
  355.   </button>
  356.  </td>
  357.  <td>
  358.   <button id=btnNextErr tabindex=4 type=reset accesskey=p
  359.   style="font-family: MS Sans Serif; font-size:8pt; width:10em; height:2.2em;">
  360.    <u>P</u>r≤ximo
  361.   </button>
  362.  </td>
  363.  </tr>
  364.  </table>
  365. </DIV>
  366. </BODY>
  367. </HTML>
  368.